package com.qf.electronic.mall.user.web.config;

import com.qf.constant.RabbitmqConstant;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 作者：张健
 * 项目名：electronic-mall
 * 时间：2020/3/10  17:57
 * 描述：
 */
@Configuration
public class RabbitmqConfig {

    @Bean
    public TopicExchange getTopicExchange(){
        return new TopicExchange(RabbitmqConstant.MAIL_TOPIC_EXCHANGE,true,false,null);
    }


}
